package com.sharing.backgroundmodule.mapper;

import com.sharing.backgroundmodule.dto.AgeDto;
import com.sharing.backgroundmodule.dto.AreaDto;
import com.sharing.backgroundmodule.dto.RetentionRate;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author MingTian
 * @version 1.0
 * @description TODO
 * @date 2023/6/11 21:31
 */
@Mapper
public interface UserStatisticsMapper {
    Integer selectUserRegistrationNumbers();

    Integer selectMaxProductionsNumber(String begin, String end);

    List<Integer> selectUserNumberByProduction(List<Integer> thresholds, String begin, String end);

    List<AgeDto> selectUserNumberByAge(String begin, String end);

    List<AreaDto> selectUserNumberByArea(String begin, String end);

    List<RetentionRate> selectRetentionRate(String begin, String end);
}
